package com.kgc.fk.Controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.fk.Service.CostConServ;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@CrossOrigin(maxAge = 3600)
public class CostThingController {
    private Logger logger = LoggerFactory.getLogger(CostThingController.class);
    @Resource
    private CostConServ costConServ;

    @RequestMapping("getAllCostThing")
    public ResponseMsg getAllCostThing(){
        ResponseMsg responseMsg = costConServ.getAllThing();
        return responseMsg;
    }



}
